<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    // 获取传递的参数
    int num1 = Integer.parseInt(request.getParameter("num1"));
    int num2 = Integer.parseInt(request.getParameter("num2"));
    int num3 = Integer.parseInt(request.getParameter("num3"));
    
    // 创建数组并排序
    int[] numbers = {num1, num2, num3};
    for(int i = 0; i < numbers.length - 1; i++) {
        for(int j = 0; j < numbers.length - 1 - i; j++) {
            if(numbers[j] > numbers[j + 1]) {
                int temp = numbers[j];
                numbers[j] = numbers[j + 1];
                numbers[j + 1] = temp;
            }
        }
    }
%>
<div style="margin-top: 20px;">
    <h3>排序结果：</h3>
    <p>从小到大排序：<%= numbers[0] %>, <%= numbers[1] %>, <%= numbers[2] %></p>
</div>